.barrage-container {
  overflow: hidden;
}

.barrage-messages {
  width: 100%;
  height: 100%;
  position: relative;
}

.barrage-message {
  /* 移除以下过渡属性，避免与 animation 冲突 */
  /* transition: transform linear; */
}

@keyframes barrage-slide {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(calc(-100vw - 100%)); /* 响应式距离：视窗宽度+自身宽度 */
    opacity: 0;
  }
}

.barrage-input-area {
  z-index: 10;
}


/* 表情包菜单样式 */
.ant-dropdown-menu {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ant-dropdown-menu-item {
  color: white;
  text-align: center;
  padding: 8px;
  margin: 0 4px 4px 0;
  width: 60px;
  height: 60px;
  float: left;
  border-radius: 4px;
}

.ant-dropdown-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 表情包图片样式 */
.barrage-message img.emoji {
  vertical-align: middle;
  height: 1.5em;
  width: 1.5em;
  margin: 0 0.1em;
}